class Animal{
    public String name = "可乐";
    public String gender;
    public void eatFood(){
        System.out.println(this.name + "正在吃东西~");
    }
}
class Dog extends Animal{
    public String name;
    public void eatFood(){
        System.out.println(this.name + "正在吃狗粮~");
    }
    public void run(){
        System.out.println(this.name + "正在奔跑！");
    }
    public void showState(String name){
        super.eatFood();
        System.out.println(super.name);
    }

    public static void main(String[] args) {
        Dog d = new Dog();
        d.showState("土豆");
//        d.name = "土豆";
//        d.eatFood();
    }
}
class Bird extends Animal{
    public void fly(){
        System.out.println(this.name + "正在飞！");
    }
}
public class Test {
}
